package library.book;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28214
 * Date: 2024-05-16
 * Time: 21:55
 */
public class Book {
    private String bookName;
    private String author;
    private int  price;
    private String type;
    public boolean isBorrow;

    public Book(String bookName, String author, int price, String type) {
        this.bookName = bookName;
        this.author = author;
        this.price = price;
        this.type = type;
    }

    @Override
    public String toString() {
        return "书籍{" +"书名："+bookName+"  作者："+author+" 价钱："+price+" 类型："+type+
                " 是否被借出：" + isBorrow +
                '}';
    }
    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }
    public String getAuthor() {
        return author;
    }
    public void setAuthor(String author) {
        this.author = author;
    }
    public double getPrice() {
        return price;
    }
    public void setPrice(int price) {
        this.price = price;
    }
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
    public boolean isBorrow() {
        return isBorrow;
    }
    public void setBorrow(boolean borrow) {
        isBorrow = borrow;
    }

}
